package com.partner.bean.login;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class UserCheckCaptcha {
	
	@NotBlank(message = "{account.is.null}")
	@Pattern(regexp="^((13[0-9])|(14[5,7,9])|(15[^4,\\D])|(17[0,1,3,5-8])|(18[0-9]))\\d{8}$", message="{account.format.error}")
	private String account;
	@NotBlank(message = "{captcha.is.null}")
	@Length(max=4,min=4,message = "{captcha.length.error}")
	private String captcha ;
	
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getCaptcha() {
		return captcha;
	}
	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	} 
	
	
}
